//
//  main.m
//  ConfuseTooles
//
//  Created by vincent on 2018/5/7.
//  Copyright © 2018年 vincent. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "FileUtils.h"
#import "ConfuseResource.h"


int main(int argc, const char * argv[]) {
  @autoreleasepool {
      // insert code here...
    if (argc < 3) {
      printf("参数个数出错，应该像这样: confuseTooles bundle 200");
    }
//    NSLog(@"Hello, World! %@", [FileUtils getCurrPath]);
    NSString *dirName = [NSString stringWithFormat:@"%s",argv[1]];
    NSString *num = [NSString stringWithFormat:@"%s",argv[2]];
    [ConfuseResource createSmallFile:dirName fileNum:[num intValue]];
  }
  return 0;
}



